package com.analyse.stock.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "mail")
@Data
public class MailConfig {
    // 是否开启邮件发送
    private Boolean enable;

    private Form form;

    private To to;

    @Data
    public static class Form {
        private String host;
        private String port;
        private String fromUser;
        private String fromUserPass;
    }

    @Data
    public static class To {
        private String toUser;
    }
}
